@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}

body {
  /* color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb)); */
}
html {
  overflow: auto;
  position: static;
}

/* 显示内容的滚动条 */
html::-webkit-scrollbar {
  width: 0.5em;
  /* 调整滚动条宽度 */
  height: 0.5em;
  transition: all 0.4s;
}

/* 滚动条的轨道 */
html::-webkit-scrollbar-track {
  background: #D9DEDF;
  /* 设置轨道的背景颜色 */
}

/* 滚动条的滑块 */
html::-webkit-scrollbar-thumb {
  background: rgba(163, 163, 163, 0%);
  /* 设置滑块的背景颜色 */
  border-radius: 4px;
  transition: all 0.4s;
  /* 设置滑块的圆角 */
}

/* 鼠标悬停在 html 上时 */
html:hover::-webkit-scrollbar-thumb {
  background: rgba(163, 163, 163, 10%);
  transition: all 0.4s;
}

/* 鼠标悬停在滑块上时 */
html::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 163, 163, 40%);
  /* 设置悬停状态下滑块的背景颜色 */
}

.navbar, .footer{
  z-index: 1000;
}

.sticky {
  width: 100%;
  top: 0;
  left: 0;
  padding: 10px 100px;
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}

.cursor {
  border-radius: 50%;
  display: block;
  position: fixed;
  margin-top: -10px;
  margin-left: -10px;
  width: 30px;
  height: 30px;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-transform: scale(1);
          transform: scale(1);
  background-color: rgba(122, 122, 122, .25);
  -webkit-transition: -webkit-transform 0.35s ease-out;
  transition: -webkit-transform 0.35s ease-out;
  transition: transform .35s ease-out;
  transition: transform .35s ease-out, -webkit-transform .35s ease-out;
  z-index: 1011;
}

.cursor.large {
  width: 30px;
  height: 30px;
}